<?php


namespace App\Collections;
use App\Models\Article as ArticleModel;

class Article
{
    // 热门文章集合
    public function hot($limit){
        $content =  ArticleModel::orderby("hits")->orderBy("created_at")->limit($limit)->get();
        return $content;
    }
}
